<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>美国新冠疫情预测分析</title>
</head>
<style>
    .mid-set {
        text-align: center;
        margin: 0 auto;
    }

    h1 {
        margin-top: 5px;
        margin-bottom: 5px;
        font-size: 28px;
    }

    h2 {
        margin-top: 5px;
        margin-bottom: 5px;
        font-size: 20px;
    }

    h3 {
        margin-top: 5px;
        margin-bottom: 5px;
        font-size: 16px;
    }

    img {
        height: 450px;
        width: 600px;
    }

    button {
        width: 80px;
        height: 40px;
    }

    a:link, a:visited {
        border-radius: 8px;
        background-color: grey;
        color: white;
        padding: 8px 10px;
        text-align: center;
        text-decoration: none;
        display: inline-block;
    }

    a:hover, a:active {
        background-color: black;
    }
    .show_pic{
        height:630px;
        width: 840px;
    }
    select{
        background: transparent;
        height:100%;
        padding-left: 5px;
        border-radius: 5px;
        font-family: "Microsoft YaHei", "Simsun", "SimHei", serif;
    }
</style>
<body class="mid-set">
<h1>美国新冠疫情预测分析</h1>
<h2>(截至2022年11月19日)</h2>
<a href="./page_confirmation.html">确诊人数变化趋势展示</a>
<a href="./page_death.html">死亡人数变化趋势展示</a>
<a href="./page_preview.html">预测变化趋势预览展示</a>
<a href="./page_display.html">变化趋势动态分析展示</a>
<HR width="80%" SIZE=4 color="black">
<h3>动态可视化回归数据分析</h3>
<div>
    <div>
        <img id="img1" src="http://api.covid_analysis.hymsk.asia/PaintModelFit/?column=确诊人数&model=3" alt="第一张图">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <img id="img2" src="http://api.covid_analysis.hymsk.asia/PaintModelFit/?&model=3" alt="第二张图">
        <div>
            <form action="demo_form.php" name="form1" method="post">
                <b>左图&nbsp;&nbsp;</b><label for="column1">数据选项：</label>
                <select id="column1">
                    <option selected="selected">确诊人数</option>
                    <option>死亡人数</option>
                </select>
                <label for="state1">&nbsp;&nbsp;州：</label>
                <select id="state1">
                    <option>Washington</option>
                    <option>Illinois</option>
                    <option>California</option>
                    <option>Arizona</option>
                    <option>Massachusetts</option>
                    <option>Wisconsin</option>
                    <option>Texas</option>
                    <option>Nebraska</option>
                    <option>Utah</option>
                    <option>Oregon</option>
                    <option>Florida</option>
                    <option>New York</option>
                    <option>Rhode Island</option>
                    <option>Georgia</option>
                    <option>New Hampshire</option>
                    <option>North Carolina</option>
                    <option>New Jersey</option>
                    <option>Colorado</option>
                    <option>Maryland</option>
                    <option>Nevada</option>
                    <option>Tennessee</option>
                    <option>Hawaii</option>
                    <option>Indiana</option>
                    <option>Kentucky</option>
                    <option>Minnesota</option>
                    <option>Oklahoma</option>
                    <option>Pennsylvania</option>
                    <option>South Carolina</option>
                    <option>District of Columbia</option>
                    <option>Kansas</option>
                    <option>Missouri</option>
                    <option>Vermont</option>
                    <option>Virginia</option>
                    <option>Connecticut</option>
                    <option>Iowa</option>
                    <option>Louisiana</option>
                    <option>Ohio</option>
                    <option>Michigan</option>
                    <option>South Dakota</option>
                    <option>Arkansas</option>
                    <option>Delaware</option>
                    <option>Mississippi</option>
                    <option>New Mexico</option>
                    <option>North Dakota</option>
                    <option>Wyoming</option>
                    <option>Alaska</option>
                    <option>Maine</option>
                    <option>Alabama</option>
                    <option>Idaho</option>
                    <option>Montana</option>
                    <option>Puerto Rico</option>
                    <option>Virgin Islands</option>
                    <option>Guam</option>
                    <option>West Virginia</option>
                    <option>Northern Mariana Islands</option>
                    <option>American Samoa</option>
                </select>
                <label for="model1">&nbsp;&nbsp;分析方式：</label>
                <select id="model1">
                    <option>一元线性回归</option>
                    <option>一元线性岭回归</option>
                    <option selected="selected">多次线性回归</option>
                    <option>多次岭回归</option>
                    <option>相互干扰预测</option>
                    <option>灰色预测</option>
                </select>
                <label for="pow1">&nbsp;&nbsp;次数：</label><select id="pow1">
                <option>1</option>
                <option>2</option>
                <option selected="selected">3</option>
                <option>4</option>
                <option>5</option>
            </select>
                &nbsp;&nbsp;正则化强度：<input type="text" id="alpha1" value="0" style="width:40px;">&nbsp;&nbsp;&nbsp;&nbsp;
                添加随机因素：<input type="checkbox" id="add_random1"/>&nbsp;&nbsp;&nbsp;&nbsp;
                <input type="button" onclick="myFunction1()" value="提交">
                <script>
                    function myFunction1() {
                        var column = document.forms["form1"]["column1"].value;
                        var state = document.forms["form1"]["state1"].value;
                        var model = document.forms["form1"]['model1'].value;
                        var pow = 3;
                        var alpha = 0.1;
                        var add_random = document.forms["form1"]['add_random1'].checked;
                        if (model === "一元线性回归") model = "1";
                        else if (model === "一元线性岭回归") {
                            model = "2";
                            alpha = document.forms["form1"]['alpha1'].value;
                        } else if (model === "多次线性回归") {
                            model = "3";
                            pow = document.forms["form1"]['pow1'].value;
                        } else if (model === "多次岭回归") {
                            model = "4";
                            pow = document.forms["form1"]['pow1'].value;
                            alpha = document.forms["form1"]['alpha1'].value;
                        } else if (model === "相互干扰预测") {
                            model = "5";
                            pow = document.forms["form1"]['pow1'].value;
                            alpha = document.forms["form1"]['alpha1'].value;
                        } else if (model === "灰色预测") {
                            model = "6";
                            pow = document.forms["form1"]['pow1'].value;
                            alpha = document.forms["form1"]['alpha1'].value;
                        }
                        document.getElementById("img1").src = "http://api.covid_analysis.hymsk.asia/PaintModelFit/?column=" + column + "&state=" + state + "&model=" + model + "&degree=" + pow + "&alpha=" + alpha + "&add_random=" + add_random;
                    }
                </script>
            </form>
            <form action="demo_form.php" name="form2" method="post">
                <b>右图&nbsp;&nbsp;</b><label for="column2">数据选项：</label>
                <select id="column2">
                    <option>确诊人数</option>
                    <option selected="selected">死亡人数</option>
                </select>
                <label for="state2">&nbsp;&nbsp;州：</label>
                <select id="state2">
                    <option>Washington</option>
                    <option>Illinois</option>
                    <option>California</option>
                    <option>Arizona</option>
                    <option>Massachusetts</option>
                    <option>Wisconsin</option>
                    <option>Texas</option>
                    <option>Nebraska</option>
                    <option>Utah</option>
                    <option>Oregon</option>
                    <option>Florida</option>
                    <option>New York</option>
                    <option>Rhode Island</option>
                    <option>Georgia</option>
                    <option>New Hampshire</option>
                    <option>North Carolina</option>
                    <option>New Jersey</option>
                    <option>Colorado</option>
                    <option>Maryland</option>
                    <option>Nevada</option>
                    <option>Tennessee</option>
                    <option>Hawaii</option>
                    <option>Indiana</option>
                    <option>Kentucky</option>
                    <option>Minnesota</option>
                    <option>Oklahoma</option>
                    <option>Pennsylvania</option>
                    <option>South Carolina</option>
                    <option>District of Columbia</option>
                    <option>Kansas</option>
                    <option>Missouri</option>
                    <option>Vermont</option>
                    <option>Virginia</option>
                    <option>Connecticut</option>
                    <option>Iowa</option>
                    <option>Louisiana</option>
                    <option>Ohio</option>
                    <option>Michigan</option>
                    <option>South Dakota</option>
                    <option>Arkansas</option>
                    <option>Delaware</option>
                    <option>Mississippi</option>
                    <option>New Mexico</option>
                    <option>North Dakota</option>
                    <option>Wyoming</option>
                    <option>Alaska</option>
                    <option>Maine</option>
                    <option>Alabama</option>
                    <option>Idaho</option>
                    <option>Montana</option>
                    <option>Puerto Rico</option>
                    <option>Virgin Islands</option>
                    <option>Guam</option>
                    <option>West Virginia</option>
                    <option>Northern Mariana Islands</option>
                    <option>American Samoa</option>
                </select>
                <label for="model2">&nbsp;&nbsp;分析方式：</label>
                <select id="model2">
                    <option>一元线性回归</option>
                    <option>一元线性岭回归</option>
                    <option selected="selected">多次线性回归</option>
                    <option>多次岭回归</option>
                    <option>相互干扰预测</option>
                    <option>灰色预测</option>
                </select>
                <label for="pow2">&nbsp;&nbsp;次数：</label><select id="pow2">
                <option>1</option>
                <option>2</option>
                <option selected="selected">3</option>
                <option>4</option>
                <option>5</option>
            </select>
                &nbsp;&nbsp;正则化强度：<input type="text" id="alpha2" value="0" style="width:40px;">&nbsp;&nbsp;&nbsp;&nbsp;
                添加随机因素：<input type="checkbox" id="add_random2"/>&nbsp;&nbsp;&nbsp;&nbsp;
                <input type="button" onclick="myFunction2()" value="提交">
                <script>
                    function myFunction2() {
                        var column = document.forms["form2"]["column2"].value;
                        var state = document.forms["form2"]["state2"].value;
                        var model = document.forms["form2"]['model2'].value;
                        var pow = 3;
                        var alpha = 0.1;
                        var add_random = document.forms["form2"]['add_random2'].checked;
                        if (model === "一元线性回归") model = "1";
                        else if (model === "一元线性岭回归") {
                            model = "2";
                            alpha = document.forms["form2"]['alpha2'].value;
                        } else if (model === "多次线性回归") {
                            model = "3";
                            pow = document.forms["form2"]['pow2'].value;
                        } else if (model === "多次岭回归") {
                            model = "4";
                            pow = document.forms["form2"]['pow2'].value;
                            alpha = document.forms["form2"]['alpha2'].value;
                        } else if (model === "相互干扰预测") {
                            model = "5";
                            pow = document.forms["form2"]['pow2'].value;
                            alpha = document.forms["form2"]['alpha2'].value;
                        } else if (model === "灰色预测") {
                            model = "6";
                            pow = document.forms["form1"]['pow1'].value;
                            alpha = document.forms["form1"]['alpha1'].value;
                        }
                        document.getElementById("img2").src = "http://api.covid_analysis.hymsk.asia/PaintModelFit/?column=" + column + "&state=" + state + "&model=" + model + "&degree=" + pow + "&alpha=" + alpha + "&add_random=" + add_random;
                    }
                </script>
            </form>
        </div>
    </div>
</div>
<p>&nbsp;
</body>
</html>